HTML optgroup tag |
您所在的位置:网站首页 › drop down list option › HTML optgroup tag |
HTML Tag
❮ Previous
Complete HTML Reference
Next ❯
Example
Group related options with tags: Choose a car: Volvo Saab Mercedes Audi Try it Yourself » Definition and UsageThe tag is used to group related options in a element (drop-down list). If you have a long list of options, groups of related options are easier to handle for a user. Browser Support Element Yes Yes Yes Yes Yes Attributes Attribute Value Description disabled disabled Specifies that an option-group should be disabled label text Specifies a label for an option-group Global AttributesThe tag also supports the Global Attributes in HTML. Event AttributesThe tag also supports the Event Attributes in HTML. Related PagesHTML DOM reference: OptionGroup Object Default CSS SettingsNone. ❮ Previous Complete HTML Reference Next ❯ |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |